package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Setter
@Getter
public class DailyComment extends BaseDomain{//日报点评
    public static final int STATE_NORMAL = 0;//状态普通
    public static final int STATE_HOT = 1;//状态置顶

    private Daily daily;//哪篇日报

    private String content;//评论内容

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;//评论时间

    private Integer praise=0;//点赞

    private Integer collect=0;//收藏

    private User user;//哪位用户

    private Integer state=STATE_NORMAL;//状态

}